unit FormNivelUnit;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls,IsisEngine;

type
  TfrmNivel = class(TForm)
    rgNiveis: TRadioGroup;
    procedure FormKeyDown(Sender: TObject; var Key: Word;
      Shift: TShiftState);
  private
    { Private declarations }
  public
    { Public declarations }
    fRgLevel:TLevel;
  end;

var
  frmNivel: TfrmNivel;

implementation

{$R *.dfm}

procedure TfrmNivel.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
   case key of
      13:
      begin
         fRgLevel:=TLevel(rgNiveis.ItemIndex);
         ModalResult:=mrOk;
      end;
      27:
         ModalResult:=mrCancel;
   end;
end;

end.
